import layoutVariety._;
import dataflowVariety._;

object program
{
	private val wf = WidgetFactory;
	private val af = AttributeFactory;
	val mainWindow = new MainWindow();
	mainWindow.maximize();
	private var box_1 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_1",box_1);
	box_1.setAlignment(AlignDirection.Hor);
	private var box_2 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_2",box_2);
	box_2.setAlignment(AlignDirection.Hor);
	private var box_3 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_3",box_3);
	box_3.setAlignment(AlignDirection.Hor);
	private var box_4 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_4",box_4);
	box_4.setAlignment(AlignDirection.Ver);
	private var box_5 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_5",box_5);
	box_5.setAlignment(AlignDirection.Hor);
	private var box_6 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_6",box_6);
	box_6.setAlignment(AlignDirection.Hor);
	private var box_7 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_7",box_7);
	box_7.setAlignment(AlignDirection.Hor);
	private var box_8 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_8",box_8);
	box_8.setAlignment(AlignDirection.Ver);
	private var box_9 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_9",box_9);
	box_9.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("main_width",1.0),("virtual0",-1.0))),true);
	box_9.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual1",-1.0),("main_hight",1.0))),true);
	box_9.setAlignment(AlignDirection.Hor);
	private var box_10 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_10",box_10);
	box_10.setAlignment(AlignDirection.Ver);
	private var box_11 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_11",box_11);
	af.loadDataFromTerm(List(("$",0.0),("main_hight",1.0),("default_panel_hight",2.0),("tab_hight",1.0)));
	af.assign("main_width","200.0");
	af.assign("main_hight","500.0");
	af.assign("default_panel_hight","20.0");
	box_11.setAlignment(AlignDirection.Hor);
	private var box_12 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_12",box_12);
	box_12.setAlignment(AlignDirection.Ver);
	private var mainBox = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("mainBox",mainBox);
	private var box_19 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_19",box_19);
	private var textbox_18 = wf.getWidget("textbox");
	box_19.addWidget(textbox_18);
	mainWindow.addWidget("textbox_18",textbox_18);
	textbox_18.setAttByName("text","Enter URL");
	textbox_18.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("url_width",1.0),("virtual12",-1.0))),true);
	textbox_18.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual13",-1.0),("default_panel_hight",1.0))),true);
	private var button_17 = wf.getWidget("button");
	box_19.addWidget(button_17);
	mainWindow.addWidget("button_17",button_17);
	button_17.setAttByName("image","new_tab.png");
	button_17.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("virtual10",-1.0),("default_panel_hight",1.0))),true);
	button_17.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual11",-1.0),("default_panel_hight",1.0))),true);
	private var button_16 = wf.getWidget("button");
	box_19.addWidget(button_16);
	mainWindow.addWidget("button_16",button_16);
	button_16.setAttByName("image","stop.png");
	button_16.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual8",-1.0))),true);
	button_16.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual9",-1.0),("default_panel_hight",1.0))),true);
	private var button_15 = wf.getWidget("button");
	box_19.addWidget(button_15);
	mainWindow.addWidget("button_15",button_15);
	button_15.setAttByName("image","refresh.png");
	button_15.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("virtual6",-1.0),("default_panel_hight",1.0))),true);
	button_15.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual7",-1.0),("default_panel_hight",1.0))),true);
	private var button_14 = wf.getWidget("button");
	box_19.addWidget(button_14);
	mainWindow.addWidget("button_14",button_14);
	button_14.setAttByName("image","forward.png");
	button_14.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("virtual4",-1.0),("default_panel_hight",1.0))),true);
	button_14.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual5",-1.0))),true);
	private var button_13 = wf.getWidget("button");
	box_19.addWidget(button_13);
	mainWindow.addWidget("button_13",button_13);
	button_13.setAttByName("image","back.png");
	button_13.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("virtual2",-1.0),("default_panel_hight",1.0))),true);
	button_13.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual3",-1.0))),true);
	box_19.setAlignment(AlignDirection.Hor);
	private var box_20 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_20",box_20);
	box_20.setAlignment(AlignDirection.Ver);
	private var box_27 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_27",box_27);
	private var textbox_26 = wf.getWidget("textbox");
	box_27.addWidget(textbox_26);
	mainWindow.addWidget("textbox_26",textbox_26);
	textbox_26.setAttByName("text","Enter URL");
	textbox_26.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("url_width",1.0),("virtual24",-1.0))),true);
	textbox_26.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual25",-1.0),("default_panel_hight",1.0))),true);
	private var button_25 = wf.getWidget("button");
	box_27.addWidget(button_25);
	mainWindow.addWidget("button_25",button_25);
	button_25.setAttByName("image","new_tab.png");
	button_25.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("virtual22",-1.0),("default_panel_hight",1.0))),true);
	button_25.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual23",-1.0))),true);
	private var button_24 = wf.getWidget("button");
	box_27.addWidget(button_24);
	mainWindow.addWidget("button_24",button_24);
	button_24.setAttByName("image","stop.png");
	button_24.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual20",-1.0))),true);
	button_24.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual21",-1.0),("default_panel_hight",1.0))),true);
	private var button_23 = wf.getWidget("button");
	box_27.addWidget(button_23);
	mainWindow.addWidget("button_23",button_23);
	button_23.setAttByName("image","refresh.png");
	button_23.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual18",-1.0))),true);
	button_23.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual19",-1.0))),true);
	private var button_22 = wf.getWidget("button");
	box_27.addWidget(button_22);
	mainWindow.addWidget("button_22",button_22);
	button_22.setAttByName("image","forward.png");
	button_22.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual16",-1.0))),true);
	button_22.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual17",-1.0))),true);
	private var button_21 = wf.getWidget("button");
	box_27.addWidget(button_21);
	mainWindow.addWidget("button_21",button_21);
	button_21.setAttByName("image","back.png");
	button_21.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("default_panel_hight",1.0),("virtual14",-1.0))),true);
	button_21.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual15",-1.0),("default_panel_hight",1.0))),true);
	box_27.setAlignment(AlignDirection.Hor);
	private var box_28 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_28",box_28);
	box_28.setAlignment(AlignDirection.Ver);
	private var box_29 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_29",box_29);
	box_29.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("main_width",1.0),("virtual26",-1.0))),true);
	box_29.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual27",-1.0),("default_panel_hight",1.0))),true);
	box_29.setAlignment(AlignDirection.Hor);
	private var box_30 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_30",box_30);
	box_30.setAlignment(AlignDirection.Ver);
	private var box_31 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_31",box_31);
	af.loadDataFromTerm(List(("$",0.0),("main_width",1.0),("default_panel_hight",5.0),("url_width",1.0)));
	box_31.setAlignment(AlignDirection.Hor);
	private var box_32 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_32",box_32);
	box_32.setAlignment(AlignDirection.Ver);
	private var control_panel = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("control_panel",control_panel);
	private var box_34 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_34",box_34);
	private var tab_33 = wf.getWidget("tab");
	box_34.addWidget(tab_33);
	mainWindow.addWidget("tab_33",tab_33);
	tab_33.setCustomAttribute("width",af.getVirtualFromTerm(List(("$",0.0),("main_width",1.0),("virtual28",-1.0))),true);
	tab_33.setCustomAttribute("hight",af.getVirtualFromTerm(List(("$",0.0),("virtual29",-1.0),("tab_hight",1.0))),true);
	box_34.setAlignment(AlignDirection.Hor);
	private var box_35 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_35",box_35);
	box_35.setAlignment(AlignDirection.Ver);
	private var tab_panel = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("tab_panel",tab_panel);
	private var box_37 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_37",box_37);
	box_37.setAlignment(AlignDirection.Hor);
	private var box_38 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_38",box_38);
	box_38.setAlignment(AlignDirection.Ver);
	private var box_39 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_39",box_39);
	box_39.setAlignment(AlignDirection.Hor);
	private var box_40 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_40",box_40);
	box_40.setAlignment(AlignDirection.Ver);
	private var box_41 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_41",box_41);
	box_41.setAlignment(AlignDirection.Hor);
	private var box_42 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_42",box_42);
	box_42.setAlignment(AlignDirection.Ver);
	private var box_43 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_43",box_43);
	box_43.setAlignment(AlignDirection.Hor);
	private var box_44 = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("box_44",box_44);
	box_44.setAlignment(AlignDirection.Ver);
	private var status_panel = wf.getWidget("box").asInstanceOf[Box];
	mainWindow.addWidget("status_panel",status_panel);
	mainWindow.setMainBox(mainBox);
}
